POV-Ray : Newsgroups : povray.beta-test : Rand() problems (rand.inc and with functions) : Re: Rand() problems (rand.inc and with functions) Server Time
30 Jul 2024 12:31:50 EDT (-0400)
  Re: Rand() problems (rand.inc and with functions)  
From: Thorsten Froehlich
Date: 12 Nov 2001 04:05:14
Message: <3bef90ca@news.povray.org>
In article <3bef019e@news.povray.org> , "Redbeard" 
<red### [at] wvadelphianet> wrote:

> I just would have thought that the error would point out rand, or at least
> something closer to rand.  If an unknown identifier in the form of a called
> function (i.e. function { Test(x) }) is parsed, the error is "Expected
> 'operator', ( found instead"  This makes a little more sense to me.  Why would
> rand (which probably shouldn't be visible to the function parser) generate a
> different error?
>
> I'm not questioning the judgment, it's just that the message (as it stands)
> doesn't make sense, epsecially if someone decides to try to use rand in a
> function.

It has to do with the slightly different internal representation of "rand"
compared to user defined variables.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.